package com.oop9.oldPilot;

public class Airliner extends Airplane {
	private int seat;

	public int getSeat() {
		return seat;
	}

	public void setSeat(int seat) {
		this.seat = seat;
	}

	@Override
	public void fly() {
		System.out.println("客机起飞！");
	}

	@Override
	public void accelerate() {
		System.out.println(
				"起飞成功！机重：" + this.getWeight() + "飞行高度：" + this.getAltitude() + "座椅数：" + this.getSeat() + "状态良好");
		System.out.println("客机加速，可能会有点颠簸，请系好安全带！");
	}

	@Override
	public void land() {
		System.out.println("客机降落，请收起小桌板，调直座椅靠背，打开遮光板！");
	}

	public Airliner(double weight, double altitude, int seat) {
		super(weight, altitude);
		this.seat = seat;
	}

}
